<?php
//Démarrage de la session
session_start();
	
$id_cat = $_GET['id'];

//Connexion à la BDD
include ("../../commun_shop/utils/settings_bdd_shop.php");
mysql_connect($host_bd, $id_bd , $mdp_bd);
mysql_select_db("vanadium");mysql_query("SET NAMES 'UTF8'");

$id_shop = $_SESSION['id_shop_connecte'];

$retour_idshop = mysql_query("SELECT id FROM shop WHERE id_shop='$id_shop'") or die(mysql_error()) ;
$idshop = mysql_fetch_array($retour_idshop);
$idshop = $idshop['id'];

//Fermeture de la connexion
mysql_close();

echo"
<div id='formulaire_ajout_produit'>
	<form method='POST' action='../commun_shop/modules/traitement_ajout_produit.php' name='ajout_prod'>
		<table>
			<tr>
				<td>Nom du Produit :</td>
				<td><input type='text' name='nom_produit'/></td>
			</tr>
			<tr>
				<td>Description (facultatif):</td>
				<td><input type='text' name='description_produit'/></td>
			</tr>
			<tr>
				<td>Prix du Produit :</td>
				<td><input type='text' name='prix_produit'/></td>
				<td class='xs'>€</td>
			</tr>
		</table>
		<input type='hidden' name='categorie' value='$id_cat'/>
		<input type='hidden' name='shop' value='$idshop'/>
		<input type='submit' name='validation' value='Créer' id='bouton'/>
	</form>
</div>
";
?>